
<style>
/* 优化整体布局，让所有模块能展示在一起 */
#job-form .panel {
    margin-bottom: 10px;
}

#job-form .panel-heading {
    padding: 8px 15px;
}

#job-form .panel-body {
    padding: 10px 15px;
}

/* 基本信息模块进一步优化 */
#job-form .panel-primary .panel-body {
    padding: 8px 15px;
}
</style>

<form id="job-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

      <!-- 基本信息模块 -->
      {include file="pt/job_order/detail_basic_module" /}
       <!-- 历史模块 -->
      {include file="pt/job_order/detail_history_module" /}

      <!-- 录入内容模块 -->
      {include file="pt/job_order/detail_content_module" /}
      
      <!-- 操作模块 - 只有有编辑权限时才显示 -->
      {if condition="$permission.edit"}
        {include file="pt/job_order/detail_operate_module" /}
      {/if}
      
    
    <input type="hidden" name="job_id" value="{if isset($job)}{$job.id}{/if}">
    <input type="hidden" name="order_id" value="{if isset($job) && isset($job.order)}{$job.order.id}{/if}">
    <input type="hidden" name="job_type_code" value="{if isset($job_content)}{$job_content.job_type_code}{/if}">
    <div class="form-group layer-footer" >
         
        <div class="col-xs-12" style="text-align: center;">
            {if condition="$permission.edit"}
            <button type="button" name="action" value="save" class="btn btn-primary btn-embossed btn-action">{:__('提交')}</button>
            {/if}
            {if condition="$permission.back"}
            <button type="button" name="action" value="back" class="btn btn-warning btn-embossed btn-action">{:__('撤回')}</button>
            {/if}
            {if condition="$permission.reassign AND $permission.order"}
            <!-- <button type="button" name="action" value="reassign" class="btn btn-warning btn-embossed btn-action">{:__('重新指定人员')}</button> -->
            <button type="button" name="action" value="generate_order" class="btn btn-success btn-embossed btn-action">{:__('生成订单')}</button>
            {/if}
            <button type="button" name="action" value="assign" class="btn btn-success btn-embossed btn-action">{:__('委托')}</button>
            <input type="hidden" name="action" id="form-action" value="">
           
        </div>
    </div>
</form>


